<?php if(isset($_SESSION['user']['user_id']) && $_SESSION['user']['user_id']!=""){?>
<div class="col-md-8">
<div class="main-content" id="main-content">
	<div class="sub-content">
		<div class="top-header page-header clearfix">
			<h1>View product </h1>
		</div><br/><br/>
		<div class="middle-forms col-md-11">
			<form id="forms" method="post" class="form-horizontal" role="form">
			
					<div class="form-group">
						<label class="control-label col-sm-3">Brand/Grade No</label>
						<div class="col-sm-9">
						<? if(isset($this->productsDeatils->brandcode) && $this->productsDeatils->brandcode!=""){?>
							<input readonly="readonly" type="text" class="form-control" value="<?php echo $this->productsDeatils->brandcode;?>" id="brand" name="brand" placeholder="eg Acranol 290D" />
						<?}?></div>
					</div><span style="color:red" id="errorbrand"></span>
					<div class="form-group">
						<label class="control-label col-sm-3">Generic Name</label>
						<div class="col-sm-9">
						<? if(isset($this->productsDeatils->genericname) && $this->productsDeatils->genericname!=""){?>
							<input type="text" readonly="readonly" class="form-control" value="<?php echo $this->productsDeatils->genericname;?>" id="generic" name="generic" placeholder="eg Styrene Acrylic Emulsion" />
						<?}?></div>
					</div><span style="color:red" id="errorgname"></span>
					<div class="form-group">
						<label class="control-label col-sm-3">Fuction</label>
						<div class="col-sm-9">
						<?  if(isset($this->productsDeatils->fuction) && $this->productsDeatils->fuction!=""){?>
							<input type="text"  readonly="readonly" class="form-control" value="<?php  echo $this->productsDeatils->fuction;?>" id="fuction" name="fuction" placeholder="eg Binder, Defoamer, Biocide" />
						<?}?></div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-3">Manufacturer</label>
						<div class="col-sm-9">
						<?  if(isset($this->productsDeatils->fuction) && $this->productsDeatils->manufacturer!=""){?>
							<input type="text"  readonly="readonly" class="form-control" value="<?php  echo $this->productsDeatils->manufacturer;?>" id="fuction" name="fuction" placeholder="eg Binder, Defoamer, Biocide" />
						<?}?></div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-3">Origin</label>	
							<div class="col-sm-9">
							<?  if(isset($this->productsDeatils->fuction) && $this->productsDeatils->nicename!=""){?>
								<input readonly="readonly" type="text" class="form-control" value="<? echo $this->productsDeatils->nicename;?>" id="origin_name" name="origin_name" placeholder="eg origin" />
							<?}?></div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-3">Categories</label>
							<div class="col-sm-9"><?  if(isset($this->productsDeatils->fuction) && $this->productsDeatils->category_name!=""){?>
								<input readonly="readonly" type="text" class="form-control" id="category_name" name="category_name" value="<? echo $this->productsDeatils->category_name;?>" placeholder="eg Categories " />
							<? } ?></div>
					</div>
						<div class="">
							<div class="col_1">
								<label class="control-label col-sm-3">Qty</label>
								<div class="col-sm-3">
								<? if(isset($this->productsDeatils->quntity)){?>
									<input type="text" readonly="readonly" class="form-control" id="qty" name="qty" value="<? echo $this->productsDeatils->quntity;?>" placeholder="eg 1000"  />
								<?}?></div>
								<div class="col-sm-3">
								<label class="control-label col-sm-3">Units</label>
								<?  if(isset($this->productsDeatils->unites)){?>
									<input readonly="readonly" type="text" class="form-control" id="units" value="<? echo $this->productsDeatils->unites;?>" name="units" placeholder="eg Kg, Ltr"  />
								<?}?></div>
							</div>							
						</div>
						<div class="form-group">
								<label class="control-label col-sm-3">Year</label>
								<div class="col-sm-9">
								<? if(isset($this->productsDeatils->year_of_manufacture)){?>
									<input type="text" id="year" class="form-control" readonly="readonly" name="year" value="<? echo $this->productsDeatils->year_of_manufacture;?>" placeholder="year" />
								<?}?></div>
						</div>
						<div class="form-group">
							
								<label class="control-label col-sm-3">Packing</label>
								<div class="col-sm-3">
								<? if(isset($this->productsDeatils->package)){?>
								<input readonly="readonly" type="text" class="form-control" id="packing" value="<? echo $this->productsDeatils->package;?>" name="packing" placeholder="eg 200"  />
								<?}?></div>
								<div class="col-sm-3">
								<label class="control-label col-sm-3">per</label>
								<? if(isset($this->productsDeatils->per)){?>
									<input readonly="readonly"  type="text" class="form-control" id="per" name="per" value="<? echo $this->productsDeatils->per;?>" placeholder="eg Drum, Bag, Tote"  />
								<?}?></div>
													
						</div>
						<div class="form-group">
							
								<label class="control-label col-sm-3">price</label>
								<div class="col-sm-3">
								<? if(isset($this->productsDeatils->suggested_price)){?>
									<input type="text" readonly="readonly" class="form-control" id="tsh" name="tsh" value="<? if(isset($this->productsDeatils->user_currency)) { echo $this->productsDeatils->user_currency;}?>" placeholder="eg INR"  />
								<?}?></div>
								<div class="col-sm-3">
								<label class="control-label col-sm-3">&nbsp;&nbsp;</label>
								<?  if(isset($this->productsDeatils->suggested_price)){?>
									<input readonly="readonly" type="text" class="form-control" id="tsh" value="<? echo $this->productsDeatils->suggested_price;?>" name="tsh" placeholder="eg 1000"  />
								<?}?></div>
														
						</div>
						<div class="adding_list form-group">
							<div class="botton_btns">
								<div class="col-sm-3">&nbsp;</div>
						<div class="col-sm-9">								
								   	 <a class="back_btn btn btn-danger" role="button" href="<? echo $this->Url('products')?>/sales">Back</a>
								</div>
							</div>
						</div>
			</form>
		</div>
	 </div>
</div></div> 
<?php }else{?>
<script>
	window.location='<? echo $this->Url('home')?>';
</script>
<?php }?>